import request from '@/utils/request'

// 查询会员营销票务折扣管理列表
export function listTicket(query) {
  return request({
    url: '/member/ticket/list',
    method: 'get',
    params: query
  })
}

// 查询会员营销票务折扣管理详细
export function getTicket(marketTicketId) {
  return request({
    url: '/member/ticket/' + marketTicketId,
    method: 'get'
  })
}

// 新增会员营销票务折扣管理
export function addTicket(data) {
  return request({
    url: '/member/ticket',
    method: 'post',
    data: data
  })
}

// 修改会员营销票务折扣管理
export function updateTicket(data) {
  return request({
    url: '/member/ticket',
    method: 'put',
    data: data
  })
}

// 删除会员营销票务折扣管理
export function delTicket(marketTicketId) {
  return request({
    url: '/member/ticket/' + marketTicketId,
    method: 'delete'
  })
}

// 导出会员营销票务折扣管理
export function exportTicket(query) {
  return request({
    url: '/member/ticket/export',
    method: 'get',
    params: query
  })
}